﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace KIS公有云测试.Tools
{
    public class ApiAuthorizationHandler
    {
        public ApiAuthorizationHandler()
        {
            this.userCode = INIHelper.ReadIniValue("Account", "UserCode");
            this.OrgCode = INIHelper.ReadIniValue("Account", "OrgCode");
            this.EntCode = INIHelper.ReadIniValue("Account", "EntCode");
            this.clientid = INIHelper.ReadIniValue("Account", "clientid");
            this.clientsecret = INIHelper.ReadIniValue("Account", "clientsecret");
            this.GetTokenUri = INIHelper.ReadIniValue("Account", "GetToken");
        }

        public string userCode { set; get; }
        public string OrgCode { set; get; }
        public string EntCode { set; get; }
        public string clientid { set; get; }
        public string clientsecret { set; get; }
        public string GetTokenUri { set; get; }
    }
}